/**
 * NearShop
 * VersionAction.java
 * com.android.nearshop.io.protocol.in
 * 
 */
package com.android.nearshop.io.protocol.in;

import android.util.Log;

import com.android.nearshop.io.protocol.out.Version;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-8-11
 * @see : 获取系统的版本信息
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class VersionAction extends SoapAction<Version>
{
    public VersionAction()
    {
        super(ACTION_TYPE.ACTION_SYSTEM,"getVersionEx");
    }

    /* (non-Javadoc)
     * @see com.android.nearshop.io.protocol.in.SoapAction#parseJson(java.lang.String)
     */
    @Override
    protected Version parseJson(String response) throws Exception
    {
        Log.d(getMethod(), getMethod() + "response: \n " + response);
        Version res = new Version();
        res.parseData(response);
        return res;
    }
}
